package com.gulimall.cart.service;

import com.common.to.OrderItemTo;
import com.gulimall.cart.to.UserInfoTo;
import com.gulimall.cart.vo.CartItemVo;
import com.gulimall.cart.vo.CartVo;

import java.util.List;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-25 22:25
 */
public interface CartService {
    void addItem(Long skuId, Integer num);

    CartItemVo getCartItem(Long skuId);

    CartVo getCart(UserInfoTo userInfoTo);

    void checkItem(Long skuId, Short checked);

    void countItem(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<OrderItemTo> getOrderItem();
}
